package com.ruoyi.service.mapper;

import com.ruoyi.service.domain.ServicePicture;

import java.util.List;

/**
 * 图片信息表Mapper接口
 * 
 * @author ZDL
 * @date 2024-11-12
 */
public interface ServicePictureMapper 
{
    /**
     * 查询图片信息表
     * 
     * @param pictureId 图片信息表主键
     * @return 图片信息表
     */
    public ServicePicture selectServicePictureByPictureId(Long pictureId);

    /**
     * 查询图片信息表列表
     * 
     * @param servicePicture 图片信息表
     * @return 图片信息表集合
     */
    public List<ServicePicture> selectServicePictureList(ServicePicture servicePicture);
    public List<ServicePicture> selectMedicalListByOrderId(Long orderId);
    public List<ServicePicture> selectConsumeListByOrderId(Long orderId);
    public List<ServicePicture> selectCheckListByOrderId(Long orderId);
    public List<ServicePicture> selectRemarkListByOrderId(Long orderId);

    /**
     * 新增图片信息表
     * 
     * @param servicePicture 图片信息表
     * @return 结果
     */
    public int insertServicePicture(ServicePicture servicePicture);

    /**
     * 修改图片信息表
     * 
     * @param servicePicture 图片信息表
     * @return 结果
     */
    public int updateServicePicture(ServicePicture servicePicture);
    public int deleteByUrl(ServicePicture servicePicture);

    /**
     * 删除图片信息表
     * 
     * @param pictureId 图片信息表主键
     * @return 结果
     */
    public int deleteServicePictureByPictureId(Long pictureId);

    /**
     * 批量删除图片信息表
     * 
     * @param pictureIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteServicePictureByPictureIds(Long[] pictureIds);
}
